<div class="row-fluid bg-post-blog">
    <div class="span6 box-content-post-blog">
        <h3 class="tieude-blog"><?php echo lang('banbecua').' '; echo $user['fullname'];?>
        </h3>
        <div class="clear-main"></div>
        <?php
            foreach($list_friend_blog as $value){
        ?>
        <div class="box-friend">
            <div class="row-fluid">
                <div class="span4">
                    <a href="<?php echo DOMAIN.'user/blog/'.$value['User']['id']?>" title="<?php echo $value['User']['fullname']?>">
                        <img src="<?php echo DOMAIN;?>img/w118/h100/<?php echo $value['User']['images']?>" title="<?php echo $value['User']['fullname']?>" alt="<?php echo $value['User']['fullname']?>"/>
                    </a>
                </div>
                <div class="span8">
                    <div class="text-friend">ID: <span><?php echo $value['User']['fullname']?></span></div>
                    <div class="text-friend"><?php echo lang('nghanhnghe');?>: <span><?php echo $value['User']['nghanhnghe']?></span></div>
                    <div class="text-friend"><span class="rate"><?php $_SESSION['point'] = $value['User']['point']; echo $this->element('user-star');?></span></div>
                    <?php /*
                    <div class="text-friend"><?php echo lang('diem');?>: <span><?php echo $value['User']['point']?></span></div>
                    <div class="view-cmt-like">
                        <img src="<?php echo DOMAIN;?>images/icon-view.png"/> <?php echo $value['User']['sum_view']?>&nbsp;&nbsp;
                        <img src="<?php echo DOMAIN;?>images/icon-cmt.png"/> <?php echo $value['User']['sum_cmt']?>&nbsp;&nbsp;
                        <img src="<?php echo DOMAIN;?>images/icon-like.png"/> 4
                    </div>
                    */?>
                    <?php if(isset($user_login['id'])){?>
                    <div class="btn-group pull-right">
                      <a class="btn dropdown-toggle btn-group" data-toggle="dropdown" href="#">
                        Bạn bè
                        <i class="fa fa-angle-double-down"></i>
                      </a>
                      <ul class="dropdown-menu dropdown-menu-blog">
                        <li>
                            <?php
                                //neu da la ban cua nhau
                                if(isset($followed)){
                            ?>
                                <a href="<?php echo DOMAIN;?>follow/close/<?php echo $value['User']['id'];?>"><i class="fa fa-times-circle"></i> <?php echo lang('huytheodoi');?></a>
                            <?php }else{?>
                                <a href="<?php echo DOMAIN;?>follow/active/<?php echo $value['User']['id'];?>"><i class="fa fa-check-square-o"></i> <?php echo lang('theodoi');?></a>
                            <?php }?>
                    
                        </li>
                        <li>
                            <?php
                                //neu da la ban cua nhau
                                if(isset($friended)){
                            ?>
                                <a href="<?php echo DOMAIN;?>friend/close/<?php echo $user['id'];?>"><i class="fa fa-times-circle"></i> <?php echo lang('huyketban');?></a>
                            <?php }else{?>
                                <a href="<?php echo DOMAIN;?>friend/active/<?php echo $user['id'];?>"><i class="fa fa-check-square-o"></i> <?php echo lang('ketban');?></a>
                            <?php }?>
                        </li>
                        <li>
                            <a href="<?php echo DOMAIN;?>tinnhan/add/<?php echo $value['User']['id'];?>"><i class="fa fa-check-square-o"></i> <?php echo lang('Message');?></a>
                        </li>
                      </ul>
                    </div>
                    <?php }?>
                </div>
            </div>
        </div><!--end box-friend-->
        <?php }?>
    </div>
    <div class="span6 box-content-post-blog">
        <h3 class="tieude-blog"><?php echo lang('thanhvientheodoi');?></h3>
        <div class="clear-main"></div>
        <div class="row-fluid">
            <div class="ct_tt">Đang cập nhật bài viết !</div>
        </div>
    </div>
</div>